package com.xxxx.paipaicars.controller;

import com.xxxx.paipaicars.bean.dto.CommodityDTO;
import com.xxxx.paipaicars.bean.vo.CommodityVO;
import com.xxxx.paipaicars.common.Response;
import com.xxxx.paipaicars.service.ICommodityService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 北海不是海
 * @version 1.0
 * Create by 2023-06-12 22:02
 * 显示车辆的接口
 * 方案一:进行的分页的显示
 */
@RestController
@RequestMapping("Commodity")
public class CommodityController {

    @Resource
    private ICommodityService commodityService;

    @PostMapping("GetCommodity")
    public Response<CommodityVO> commodityList(@RequestBody CommodityDTO commodityDTO){
        return Response.success(commodityService.commodityList(commodityDTO));
    }



}
